package com.xlh.dto.courseTest.practice;

import com.xlh.dto.course.CourseBasicDTO;
import com.xlh.dto.courseTest.check.CheckDTO;
import com.xlh.dto.user.UserInfoDTO;
import com.xlh.pojo.course.ChapterBasic;
import com.xlh.pojo.courseTest.Practice;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author zhr 2019/4/10
 */
@Getter
@Setter
public abstract class PracticeDTO extends CheckDTO {
    // 是否已经提交
    private Boolean submit = true;

    private Boolean showAnswer;

    public PracticeDTO() {
    }

    public PracticeDTO(Practice practice, List<Practice> practiceList, ChapterBasic chapter, CourseBasicDTO course, UserInfoDTO user, int score) {
        super(practice, practiceList, chapter, course, user, score);
    }

    public PracticeDTO(int score, String checkResult) {
        super(score, checkResult);
    }

    public PracticeDTO(String pdf, String pdfName) {
        super(pdf, pdfName);
    }
}
